Refactoring. Added adjusting login and password fields when keyboard is visible