Fix username and password validation