auth page, refactored a bit
auth page, refactored a bit