login and type testing work