fixed exception if user isn't registered