added check of the login