added error handling for wagers and added dashboard and register views