improved login process