Fixes to login and forgot password
Fixes to login and forgot password

This was not changed properly when I switched over to sqlalchemy
and as such didn't work.

cordwella/ignite,cordwella/ignite,cordwella/ignite,cordwella/ignite