Added a login post route and related database functions.