If email or password are empty, redirect to /register.