Added some tests for user validation