Fixed bug with username checking