added auth functions
added simple test for user validation