register to login redirect fixed