Added Authorization Functionality