Added login functionality and page transitions