Add login and logout
Improve security