added validation on user model and a test case for it
added new Photo mode, added validation and test case