checked if there is a current user before doing things based on that