added a login page, tweaked search function