Disable login button and check password validity.