Could you please clarify what should happen on successful registration?

Added a debug function for query in get_read_access.