Fixed the registration bug (Only admin can register and can add post)