added validation and remade homepage