added login functionality and favorites