update the login mehtod to accept WebPy forms