Changed the ´users´ methods to handle the user creation and authentication