Registering a session now returns whether the user has the permission to edit a composer or song. Refactored writing permission checking