Add error output for logging in and registering
Redirect to dashboard when registered