added checkLoginData() to the bean