Better security in user template to check for login content