codestyling issues resolved and additional escaping of html output
simpler access denied code [skip CI]