fixed redirect for login page