fix redirect upon successful login