authentication_handler: remove redundant code & comments