Fixed Errors For Authorization