added validation to username input