Added login functionality
Same as last commit