Login / Logout functionality update.

Logout action added
Login form improved
Authentication method moved to individual modules