changed condition for accessing admin page