Made the form and initial login api code