Fixed Solution crashing when no user exists in database, also added some ground work for sending invitations.