Added a condition for redirect

If you are already logged in and you access the /register page, you'll
be redirect to userPanel