Fix error
Add advanced login

the base for advanced Login, with permissions, Login type, restricted
folders