Changed so registration sends correct things to server.
Registration for user works completely now.
Redirect user to home after logging in.