Fixed register method.
Working some basic authentication.