Fixed bug that caused call js functions when user was not logged in. Fixed display of messages. Introduced feedback when users logout or provide wrong credentials.