more login form stuff. Finally done