working version with homepage and user routing