modified loginform