fixed issue with redirection on initial login