changed name of login-check to checklogin for consistency.