removed debugging messages from login redirection functionality