Bug Fixed for user authorization