Added user update functionality
Resolved formatting and functionality issues