conditional added for createUser: if required fields blank