Improved login and edit profile