added checkLoginData()-Method