added checking input userName