implement devise for user authentication, live search now use lowercase, fix bugs, refactoring