when username or pwd is empty won't submit