got a login form sort of working