Fix creation of user trough CRUD and uses username for login