fixed typo in redirectPage
added redirectPage for login