Added username checking to login activity