Changed sign in method

Updated to check the window width

changed method

Updated

fix indentation
Merge pull request #62 from AndreiH/sign_in_method

Changed sign in method