refactored Login it