added tests to user model to ensure that user names are correctly formatted