Added login capability with spring security.