implementing error handling for register view
implemented new error handling object. passed from backend to frontend to determine how to handle user input errors. only for login and registeration views (and also for pending purchase version) at the moment.