Added method exit for username validation