adds an account endpoint for frontend