updated logic in user views and model to handle when a userdetail relationship is not made yet