login validation & collape home html code