Fixed bug with creation of user