added a login mechanism and record filter