changed indentation, added test to create a token and user in the datbase, fixed promises from admit one.