refactored the signed_in_user method to the sessions_helper class since the microposts controller needs to access this method as well
created tests to check to make sure only logged in users can create or destroy microposts