login system structure and security added