Added proper authorization usind hibernate, html reworked to support access parameters