Complete function on user page and styling
Changed all error handling