changed the position of sign_out(current_user) in hope of resolving bug