Change register to redirect to login when successful