improved login to allow a redirect