Implemented default methods

Methods of checking correctness of password and login