Made login form submit and initial valdiation