Applied the 'requireAuthentication' middleware where needed.