Added some tests on user model, added validation to pass tests