Added functionality to approve users upon registration