Add post route handler for login.