added warnings when login is not possible