Add validations and test to user and locations