Updated regex checking for username and password.