Adding login service and log4j configuration