Added validation, routing, login