Added a login filter, see #44 for reference.