Login + Register bugs fixed

Also redirects to app when already logged in