Replaced flask.url_for by url_for_signin.
Renamed resp to response.