Added unit tests for user creation and login
Added username validation func