- Security changed to use authentication details from database