Login security added for client and settings pages