Check permissions for log in template