Added ability to register account.