added a couple lines
added login filter