Modified login form, basic login function