check_state with username and password