Implemented two background processes for authentification.