Added permission check in the login area.
Fixed some entryPoint, Permission and style stuff.
Added better main dialog style/animation.