added current_user helper and added user id to certificates