Registering user is working. Not thoroughly tested though