Added login function to web project.