added login code, for when we have the form