Added role permissions support. Added login modal