refactored account login view