Update login.php

Set the user agent in the session upon succesful login