Refactored the signin page