Added login functionality (Incomplete)