First implementation of Login management.