Code comment as due to this code the Admin area is not opening on deployed version.