Added basic login functionality and redirection