added login so it stays in the same page, formatted results page