Modify #to_h for Problem and Task to take in an optional user and show more details relevant to the user.
Show number of submissions left and disable submit button when user is not allowed to submit.