updates the login stuff to show user in request and general tidy up