added check for ./* dir permissions (very important to know)
Displaying login form for already logged in user is disabled.