added auth check before allowing access and improved the query speed
closed user signup