Fixed bug with Registration and authorization