moved validateUsername() to Util.java