added checks for password and username fields - toggling submit button