Added tests for the user model and improved validation checks in it.