fix if registration model doesn't exist
added docstring for registration view