fix redirect for login and signup forms