updated Login

Fixed and made my code look better