New version with logging of user and pasword

Correctly work