Update CWM to check username and password