Added security to login system