renamed functions from routes/auth for clarity