changed loginform to a seperat file