Refactoring
Better implementation
Merge pull request #3 from Tom32i/refacto

Login, register and password features can now be disabled.