adds flash message support for user login