Adds user login functions to a java project.