added validation and signin page routing