This sort of modification is not supported in the Solution packs, I can give you steps to follow, but cant really offer more help if you are not able to get this working.
first, open the bindings panel and expand the session collection, make sure there is a session in the bindings panel named UserID, if its not there, click the plus button , selct Session Variable and name it UserID to createt the binding.
now, on the login page, locate the two lines that redirect to the users_Profile page:
"successRedirect" => "users_Profile.php",
and change them both to:
"successRedirect" => "",
Now go to the server behaviors panel and click the plus button, select Data Assist, updare record, single record Update
in the update record dialog box, select the users table, set the key column to UserID
click the lightning bolt next to value and selcet the UserID session variable binding.
set the redirect to go to the users_Profile.php
on the second step, select your login_date column and enter the following code for the value:
<?php echo (date("Y-m-d h:m:s")); ?>
in the code, you will need to move the update record code so that it comes after the login user code.